// 库区
import request from '@/utils/request'
// 分页查询库区详细信息
export const areaDetailed = (params) => {
  return request({
    url: '/area/pageDetail',
    params
  })
}
// 获取下一个编码
export const underId = (name) => {
  return request({
    url: `/codeFactory/next/${name}`
  })
}
// 新增库区
export const addArea = (data) => {
  return request({
    url: `/area`,
    method: 'POST',
    data
  })
}
// 修改库区
export const modifyReservoir = (data) => {
  return request({
    url: `/area`,
    method: 'PUT',
    data
  })
}
